package com.cssl.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cssl.pojo.AttEvection;
import com.cssl.pojo.AttLeave;
import com.cssl.service.AttEvectionService;
import com.cssl.dao.AttEvectionMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
* @author 李泽浩
* @description 针对表【att_evection】的数据库操作Service实现
* @createDate 2023-05-29 17:14:11
*/
@Service
@Transactional
public class AttEvectionServiceImpl extends ServiceImpl<AttEvectionMapper, AttEvection>
    implements AttEvectionService{

    @Resource
    private AttEvectionMapper mapper;

    @Override
    public IPage<AttEvection> select(IPage<AttEvection> page, QueryWrapper<AttEvection> ew) {
        return mapper.select(page, ew);
    }

    @Override
    public boolean updateStatus(int status, int id,String cause) {
        return mapper.updateStatus(status,id,cause)>0;
    }
}




